<?php
/**
 * @package		Joomla.Site
 * @subpackage	mod_sidebar
 * @copyright	Copyright (C) 2005 - 2013 Open Source Matters, Inc. All rights reserved.
 * @license		GNU General Public License version 2 or later; see LICENSE.txt
 */

// no direct access
defined('_JEXEC') or die;
$baseurl = JURI::base();
?>
<ul class="menu menu-sidebar">
<?php foreach($categories as $cat) {
	$articles = modSideBarHelper::getArticlesByCatID($cat->id);
	echo "<li class='level0'>". $cat->title ."</li>";
	foreach($articles as $art) {
		echo "<li class='level1' data-name='".$art->alias."'><a href='".$baseurl."index.php/films?alt=".$art->alias."'>" . $art->title ."</a></li>";
	}
?>
<?php } ?>
</ul>

